Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(storage/transfermanager): add option to StripPrefix on directory download #10894

Merged
merged 6 commits into from
Sep 24, 2024

Conversation

BrennaEpp
Copy link
Contributor

No description provided.

@BrennaEpp BrennaEpp requested review from a team as code owners September 20, 2024 03:33
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Sep 20, 2024
Copy link
Member

@frankyn frankyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change LGTM, just had one question in the test.

@@ -100,6 +101,7 @@ func TestIntegration_DownloadDirectory(t *testing.T) {
if err := d.DownloadDirectory(ctx, &DownloadDirectoryInput{
Bucket: tb.bucket,
LocalDirectory: localDir,
StripPrefix: "dir/",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you know that dir/ is part of the object name to test removal?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind!

// Create initializes the downloadTestBucket, creating a bucket and populating
// objects in it. All objects are of the same size but with different contents
// and can be mapped to their respective crc32c hash in contentHashes.
func (tb *downloadTestBucket) Create(prefix string) error {

storage/transfermanager/downloader.go Outdated Show resolved Hide resolved
@BrennaEpp BrennaEpp enabled auto-merge (squash) September 24, 2024 15:42
@BrennaEpp BrennaEpp merged commit 607534c into googleapis:main Sep 24, 2024
8 checks passed
@BrennaEpp BrennaEpp deleted the tm-stripprefix branch September 24, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants